<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>注册</title>
 <link rel="stylesheet" type="text/css" href="static/register.css"/> 
 
 
</head>
<body>
  <div id="login">  
        <h1>用户注册</h1>  
        <form method="post" action="RegisterServet">  
            <input type="text" required="required" placeholder="用户名" name="u"></input>  
            <input type="password" required="required" placeholder="密码" name="p"></input>  
            <button class="but" type="submit">注册</button>  
      <div style="display: flex; justify-content: space-between; align-items: center;">  
   			 <label style="margin-right: 10px;" for="password"> 
			<a href="login.jsp" style="color:blue;">去往登录</a></label>
			<label for="password"><a href="change.jsp" style="color:blue;">修改密码</a></label>
			</div>
			<label>
		
			<%
			String state = (String) session.getAttribute("A1");
						session.removeAttribute("A1"); 
			if(state!=null){
				out.print(state);
			}
			%>
		
		
			</label>
            
        </form>  
    </div>   
	
		
	
	
</body>
</html>